<?php
namespace app\admin\model;
use frame\libs\BaseModel;

/**
 * 
 */
class LogModel extends BaseModel
{
    protected $table = "system_log";

    /**
     * 新增节点
     * @param  array $data [description]
     * @return bool       [description]
     */
    public function insertLog($data)
    {
        try {
            $this->beginTransaction();
            $this->insert($data);
            $this->commit();
            return true;
        } catch (Exception $e) {
            $this->rollBack();
            return false;
        }
        return false;
    }

}

